#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import bs4
import requests

kw = "日漫"

for n in range(10):
    response = requests.get(
        "https://search.bilibili.com/all",
        params={'keyword':kw,
        'from_source':'banner_searc',
        'page':n}
        )
    soup = bs4.BeautifulSoup(response.text, "lxml")

    for item in soup.find_all('li', {'class':'video-item matrix'}):
        print(item.text)
        print('--------------')

